package com.imagefake.entity;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * (SysMenu)表实体类
 *
 * @author makejava
 * @since 2024-02-22 22:03:28
 */
@SuppressWarnings("serial")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
public class SysMenu extends Model<SysMenu> {
//编号
    private Integer id;
//父级编号
    private Integer pid;
//名称
    private String name;
//权限编码
    private String code;
//0代表菜单1权限2 url
    private Integer type;
//0代表未删除，1 代表已删除
    private Integer deleteFlag;

    /**
     * 获取主键值
     *
     * @return 主键值
     */
    @Override
    public Serializable pkVal() {
        return this.id;
    }
}

